<%@ page contentType="text/html;charset=UTF-8" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
<%@ taglib uri="/tld/dictionary" prefix="dictionary"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<c:set var="ctx" value="${pageContext.request.contextPath}"/>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="stylesheet" href="${ctx}/static/css/jquery.ui.all.css" />
<script src="${ctx}/static/script/jquery-1.4.min.js" type="text/javascript"></script>
<script src="${ctx}/static/script/jquery.ui.core.js"></script>
<script src="${ctx}/static/script/jquery.ui.datepicker.js"></script>
<title>交易撮合</title>



</head>

<body>
<form:form id="mainForm" action="${ctx}/recommend/recommend_add_init" modelAttribute="recommendInfoForm" method="post">
<div align="center">交易撮合</div>
约定交割日期 : 
<c:if test="${recommendInfoForm.investInfo.regularType=='00130001'}">
	<input id="recommendInfoForm.deliveryDate" name="recommendInfoForm.deliveryDate" 
	value="<fmt:formatDate value="${recommendInfoForm.investInfo.investStartDate}"  pattern="yyyy-MM-dd" type="date" dateStyle="long" />" readOnly="true"/><br>
</c:if>
<c:if test="${recommendInfoForm.investInfo.regularType=='00130002'}">
	<input id="recommendInfoForm.deliveryDate" name="recommendInfoForm.deliveryDate" 
	value="<fmt:formatDate value="${recommendInfoForm.investInfo.regularStartDate}" pattern="yyyy-MM-dd" type="date" dateStyle="long" />" readOnly="true"/><br>
</c:if>

<br>
<div align="center">
<input id="searchClaims" name="searchClaims" value="查找债权" type="button" onclick="trans(1)"/>
&nbsp;&nbsp;&nbsp; 
<input id="searchClaims" name="searchClaims" value="返回" type="button" onclick="window.close();"/>
</div>

<script language="javascript">
function trans(tag){
    window.returnValue=document.getElementById('recommendInfoForm.deliveryDate').value;
    if(window.returnValue==''){
    	alert('请选择约定交割日期!');
    	return ;
    }
    
   	window.close();
}
</script>

<script language="JavaScript">

function _return(){
	window.history.go(-1);
}	

</script>
</body>
</form:form>
</html>
